<a href='http://github.com/angular/angular.js/edit/master/docs/content/error/$injector/modulerr.ngdoc' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this doc</a>


<h1>Error: $injector:modulerr
  <div><span class='hint'>Module Error</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Failed to instantiate module {0} due to:
{1}">Failed to instantiate module {0} due to:
{1}</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when a module fails to load due to some exception. The error
message above should provide additional context.</p>
<p>In AngularJS <code>1.2.0</code> and later, <code>ngRoute</code> has been moved to its own module.
If you are getting this error after upgrading to <code>1.2.x</code>, be sure that you&#39;ve
installed <a href="api/ngRoute"><code>ngRoute</code></a>.</p>

</div>


